home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / rexx / rxview.lha / viewer.doc next >
Text File  |  1994-12-10  |  2KB  |  58 lines

  1. VIEWER.REXX
  2. ===========
  3.  
  4.  
  5. COPYRIGHT NOTICE
  6. ================
  7.  
  8. Copyright notice? For what? Use the very few line in viewer.rexx as you want!
  9.  
  10.  
  11. PURPOSE
  12. =======
  13.  
  14. This little arexx example ('program' is a word too big :-) ) is very useful in
  15. conjunction with ToolManager.
  16. The script alone get from the command line a file name, and depending on the
  17. extension of that file perfor an action.
  18. The file extension is simply the part of the file name after the last '.'. If in
  19. the file name ther isn't a '.' the the file extension is empty.
  20. The action is simply a call to a viewer with the file name as an argument. For
  21. example, whrn the extension is 'JPEG' i run 'fastjpeg'.
  22. The source is little an simplle, so you can edit it as you want.
  23. ToolManager come in action when you want to improve your Workbench. You can add
  24. in a dock an entry for viewer.rexx. In this way you simply drag the icon of the
  25. file on the image for viewer.rexx, and Toolmanager will run the script with the
  26. name of the file as an argument. Simply and beautiful!
  27. Someone can ask me why I don't use one from the mass of programs for this need.
  28. Simple. I don't want another icon on the Workbench, because I want to use
  29. ToolManager. So is silly (this is only my opinion) to use an external program
  30. to make that when I can make it simply via ARexx.
  31.  
  32.  
  33. BUGS
  34. ====
  35.  
  36. This document :-( and my English.
  37.  
  38.  
  39. HINTS
  40. =====
  41.  
  42. Get a copy of ToolManager for all your needs, is old but GREAT!
  43.  
  44.  
  45. FUTURE
  46. ======
  47.  
  48. What future?
  49.  
  50.  
  51. AUTHOR
  52. ======
  53.  
  54. Fabrizio Lodi  Via Faruffini 43  20149  Milan  Italy
  55. lodi@ghost.sm.dsi.unimi.it
  56. http://www.dsi.unimi.it/Users/Students/lodi/home.html
  57.  
  58.